#ifndef CLK_8255_H
#define CLK_8255_H

#include "common.h"

#define PA_ADDR_8255 0x270      // Segdata
#define PB_ADDR_8255 0x271      // LED position & address info to isd1420
#define PC_ADDR_8255 0x272      // High 4 bits input, low 4 bits output
#define CRL_ADDR_8255 0x273

void init8255();
void initLED();
void scanLED(u8 minute, u8 hour);
void scanDP(u8 flag);
u8 scanKeyboard();
u8 scanKeyboard2();               // Check if any other keys are being pressed at the same time
void delay(u16 ms);

#endif